
// 筛选项（收起）
const formItems = [
]
// 筛选项（展开）
const filterItem = [
  {
    label: "设备名称",
    prop: "equipmentName",
    type: "input"

  },
  {
    label: "设备型号",
    prop: "modelName",
    type: "select",
    optionKey: { label: "modelName", value: "modelName" }
  }
]
// 弹窗表单
const dialogFormItems = [
  {
    label: '角色名称',
    type: 'Input',
    name: 'roleName',
    prop: 'roleName',
    rules: [
      { type: 'string', required: true, message: '请输入角色名称', trigger: 'blur' }
    ],
    placeholder: '请输入角色名称'
  }

]

// 表单展示项
const tableLabel = [
  {
    label: '设备名称',
    param: 'equipmentName',
    show: true
  },
  {
    label: '所属设备型号',
    param: 'modelName',
    selectValue: 'equModelCode',
    type: 'Select',
    show: true,
    typeObj: {
      list: [],
      listName: ['modelName', 'equModelCode']
    }
  },
  {
    label: '生产日期',
    param: 'produceDate',
    type: 'date',
    value: 'date',
    show: true
  },
  {
    label: '质保期',
    param: 'sellByDate',
    slotName: 'sellByDate',
    show: true
  },
  {
    label: '质保日期',
    param: 'warrantyDate',
    type: 'date',
    value: 'date',
    show: true
  },
  {
    label: '状态',
    param: 'status',
    slotName: 'status',
    type: 'Select',
    typeObj: {
      list: [{ name: "启用", value: "ENABLE" },
      { name: "废弃", value: "DISCARD" },
      { name: "维修中", value: "REPAIRING" },
      { name: "禁用", value: "DISABLE" }]
    },
    show: true
  }
]
// 表单事件
const tableOption = {
  label: '操作',
  width: 280,
  options: [
    {
      label: '关闭',
      type: 'text',
      icon: 'el-icon-turn-off',
      methods: 'operate',
      slotName: "operate"
    }
  ]
}
// 枚举项
const enumList = [
  {
    label: '枚举1',
    value: 1
  },

  {
    label: '枚举2',
    value: 2
  },

  {
    label: '枚举3',
    value: 3
  }
]
export { formItems, dialogFormItems, tableLabel, tableOption, filterItem, enumList }
